<?php 

	if (empty($_GET['id'])) {
		die('id is empty');
	}
	require_once 'text03.php';
	connectDB();
	$id=intval($_GET['id']);
	mysql_query("DELETE FROM users WHERE id=$id");
	if (mysql_errno()) {
		die('Fail to delete user with id $id');
	}else {
		header("location:text01.php");
	}
 ?>